package com.reader.cms.service.magazine;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.reader.cms.entity.magazine.ReaderMagazine;

import java.util.List;
import java.util.Map;

/**
 * @@description  服务类
 * @author        gumenghao
 * @date          2018-10-23
 */
public interface IReaderMagazineService extends IService<ReaderMagazine> {

        /**
         * @function   分页查询
         * @param currentPage 当前页
         * @param size 每页显示条数
         * @param parms 其它参数，自行定义
         */
        Page<ReaderMagazine> selectListPage(int currentPage, int size, String state, Integer year, String period);


    boolean addMagazine(ReaderMagazine readerMagazine);


    boolean updateMagazine(ReaderMagazine readerMagazine);


    ReaderMagazine selectOneMagazine(ReaderMagazine readerMagazine);
}
